-- UNITDEF -- kawnclose_i --
--------------------------------------------------------------------------------

local unitName = "kawnclose_i"

--------------------------------------------------------------------------------

local unitDef = {
  acceleration       = 0.75,
  brakeRate          = 0.75,
  buildCostMetal     = 60,
  canAttack          = true,
  canMove            = true,
  canstop            = 1,
  category           = [[PAWN UNARMORED UNIT TARGET SMALL]],
  collisionvolumetest = 1,
  corpse              = [[DEAD]],
  description        = [[Assault Lv 1]],
  energyMake         = 0,
  energyStorage      = 0,
  explodeAs          = [[Death]],
  footprintX         = 1,
  footprintZ         = 1,
  iconType           = [[pawn]],
  idleAutoHeal       = 10,
  idleTime           = 300,
  levelGround        = false,
  maxDamage          = 100, --200 regularly but half for double squad#
  maxVelocity        = 1.5,
  metalMake          = 0,
  metalStorage       = 0,
  movementClass      = [[small]],
  name               = [[Hyeopdo Power Armor]],  ---k: sword staff
  noChaseCategory    = [[NOTARGET AIR]],
  objectName         = [[kawnclose_i.s3o]],
  radarDistance      = 0,
  reclaimable        = false,
  seismicSignature   = 1,
  selfDestructAs     = [[Death]],
  selfDestructCountdown = 1,
  showNanoFrame      = false,
  sightDistance      = 800,
  smoothAnim         = false,
  turnRate           = 1500,
  unitname           = [[kawnclose_i]],
  upright            = true,
  sfxtypes = {
    explosiongenerators = {
	[[custom:flashmuzzle1]],
	[[custom:burning]],
    },
  },
  -- sounds = {
    -- arrived = {
      -- [[commandgiven]],
    -- },
    -- ok = {
      -- [[commandgiven]],
    -- },
    -- select = {
      -- [[select]],
    -- },
  -- },
  weapons = {
    [1]  = {
      def                = [[ciwep1]],
	onlyTargetCategory = [[TARGET]], -- this is to avoid targeting bad targets ie features or invincable units
	  mainDir = "0 0 1",
      maxAngleDif = 170,
    },
  },
}


--------------------------------------------------------------------------------

local weaponDefs = {
 ciwep1 = {
	id                 = 2,
	    avoidFriendly      = false,
    burst              = 4,
    burstrate          = .1,
    collideFriendly    = false,
    craterBoost        = 0,
    craterMult         = 0,
    duration           = .05,
    explosionGenerator = [[custom:none]],
    id                 = 1,
    impactonly         = 1,
    impulseBoost       = 0,
    impulseFactor      = 0,
    name               = [[Auto Cannon]],
    range              = 264,
    reloadtime         = 3, --normal 3 but 1/2 damage
    rgbColor                = [[1 0.95 0.4]],
	texture1 = bullet,
	texture2 = bullet,
	texture3 = bullet,
    soundStart         = [[gunfire]],
    sprayAngle         = 400,
    thickness          = 1,
    tolerance          = 1000,
    turret             = true,
    weaponType         = [[LaserCannon]],
    weaponVelocity     = 1000,
	InterceptedByShieldType = 2,
    damage = {
      default            = 10, --dp3s is ??
    },
  },


  }
unitDef.weaponDefs = weaponDefs

local featureDefs = {
    DEAD  = {
      description      = [[Wreckage - close]],
      blocking         = false,
      category         = [[corpses]],
      damage           = 1000,
      energy           = 0,
	 -- featureDead      = [[HEAP]],
      featurereclamate = [[SMUDGE01]],
      footprintX       = 1,
      footprintZ       = 1,
      height           = [[20]],
      hitdensity       = [[100]],
      metal            = 0,
      object           = [[kawnclose_i_dead.s3o]],
      reclaimable      = false,
      reclaimTime      = 0,
      world            = [[All Worlds]],
    },
	
  }
  unitDef.featureDefs = featureDefs
--------------------------------------------------------------------------------

return lowerkeys({ [unitName] = unitDef })

--------------------------------------------------------------------------------
